<include file="Public:header" />
<!--添加分组-->
<form id="info_form" action="{:U('Division/add')}" method="post" >
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">分组信息</li>
            <!--<li>基础数据</li>
            <li>SEO设置</li>-->
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                    <tr>
                        <th width="120">所属区域 :</th>
                        <td>
                            <select class="J_cate_select mr10" data-pid="0" data-menuid="1" data-uri="{:U('Shop/ajax_getchilds')}" data-selected=""></select>
                            <input type="hidden" name="shop_id" id="J_cate_id" value="" />
                        </td>
                    </tr>

		            <tr>
						<th>分组名称 :</th>
						<td>
							<input type="text" name="title" id="J_title" class="input-text" size="40">
		                </td>
					</tr>
				</table>
			</div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
<include file="Public:footer" />
<js file="__STATIC__/ueditor/ueditor.config.js" charset="utf-8" />
<js file="__STATIC__/ueditor/ueditor.all.min.js" charset="utf-8" />
<js file="__STATIC__/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8" />
<script type="text/javascript">
    window.UEDITOR_HOME_URL='__STATIC__/ueditor/';
    window.onload=function(){
        window.UEDITOR_CONFIG.initialFrameWidth=880;
        window.UEDITOR_CONFIG.initialFrameHeight=500;
        UE.getEditor('info',{autoFloatEnabled:false});
        upmoreimg();
    }
</script>
<script type="text/javascript">
    var check_name_url = "{:U('Estate/ajaxCheckTitle')}";
    $(function(){
        $('ul.J_tabs').tabs('div.J_panes > div');
        $('.J_cate_select').cate_select('请选择');
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#J_title").formValidator({onshow:"请填写分组名称",onfocus:"请填写分组名称"}).inputValidator({min:1,onerror:"请填写分组名称"}).ajaxValidator({
            type : "get",
            url : check_name_url,
            datatype : "json",
            async:'false',
            success : function(result){
                if(result.status == 0){
                    return false;
                }else{
                    return true;
                }
            },
            buttons: $("#dosubmit"),
            onerror : "该分组已经存在",
            onwait : "正在验证"
        });
        $("#J_cate_id").formValidator({onshow:"请选择店铺",onfocus:"请选择店铺"}).regexValidator({regexp:"intege1",datatype:"enum",onerror:"请选择店铺"});
    });

   </script>
<js file="__JS__/uploadImg.js" charset="utf-8" />
</body>
</html>